<template>
	<div>
		<uni-page-header :title="title" />
		<rich-text :nodes="nodes"></rich-text>
	</div>
</template>

<script>
	import {
		getCurrentPageConfigByName
	} from '@/utils/index.js'
	export default {
		data() {
			return {
				nodes: '',
				title: ''
			}
		},
		onLoad(options) {
			if (options.name) {
				getCurrentPageConfigByName(options.name).then(res => {
					if (res.rich_text) {
						this.nodes = res.rich_text
						this.title = res.name || ''
					}
				})
			}
		}
	}
</script>

<style>
</style>